package org.example.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 收藏表
 * @TableName favorites
 */
@TableName(value ="favorites")
@Data
public class Favorites {
    /**
     * 收藏ID，主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long user_id;

    /**
     * 壁纸ID
     */
    @TableField(value = "wallpaper_id")
    private Long wallpaper_id;

    /**
     * 收藏时间
     */
    @TableField(value = "created_at")
    private Date created_at;
}